package com.lxw.study.behavioral.status;

import org.springframework.stereotype.Component;

@Component
public class OpenDoorState implements ElevatorState{
    public void openDoor() {
        System.out.println("Door is already open");
    }

    public void closeDoor() {
        System.out.println("Closing door");
    }

    public void moveUp() {
        System.out.println("Cannot move up while the door is open");
    }

    public void moveDown() {
        System.out.println("Cannot move down while the door is open");
    }
}
